package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(255)"`
}

type News struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"`
	Content string `gorm:"type:varchar(255)"`
	Image   string `gorm:"type:varchar(255)"`
	Likes   int    `gorm:"type:int;default:0"`
	Follow  int    `gorm:"type:int;default:0"`
}
